<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<%@ taglib uri="/WEB-INF/FCKeditor.tld" prefix="fck" %>
<%@page import="java.util.*,model.*,util.*,control.*"%>
<!DOCTYPE html>
<html>
<head>
    <title>CAT测评系统</title>
    <meta charset="utf-8"/>
    <script  src='../../js/core.js'></script>
    <link type="text/css" rel='stylesheet' href="../../css/index.css"/>
</head>
<body>
	<%
	String flag = (String)session.getAttribute("flag");
	String userId = (String)session.getAttribute("userId");
    int studentId = Integer.parseInt(userId);
                
    if (flag != "student"|| flag==null )
    {
        %>
    <script language="javascript">
             alert("您没有学生权限,请重新登录"); window.location.href="../../index.jsp";
            </script>
    <%
        
    }else{
        Student student = new Student();
        StudentControl sc = new StudentControl();
        student = sc.GetStudent(studentId);
        //out.print("<p>"+student.getStudentName()+"   欢迎您</p>");
    }
    %>
<div id="page">
    <header class="header">
        <p class="title">胡瑾，欢迎你登录CAT测评系统</p>
    </header>
    <section class="main">
      <nav class="navigator">
          <ul>
              <li><a href='problem_index.jsp'><img src="../../css/slice/1.png" width="117" height="118"><br>开始考试 </a></li>
              <li><a href="student_update.jsp"><img src="../../css/slice/2.png" width="117" height="118"><br>个人信息 </a></li>
              <li><a href="problem_score_list.jsp"><img src="../../css/slice/3.png" width="117" height="118"><br>查看成绩 </a></li>
              <li><a href="problem_history_select.jsp"><img src="../../css/slice/4.png" width="117" height="118"><br>历史记录 </a></li>
              <li><a href="aboutus.jsp"><img src="../../css/slice/5.png" width="117" height="118"><br>关于我们 </a></li>
              <li><a href="links.jsp"><img src="../../css/slice/6.png" width="117" height="118"><br>友情链接 </a></li>
              <li><a href="javascript:if(confirm('确定要退出么？')) location='../../index.jsp'"><img src="../../css/slice/7.png" width="117" height="118"><br>退出登录 </a></li>
          </ul>
      </nav>
    </section>
    <footer class="footer"><small>© 2012 Nenu</small></footer>
</div>
</body>
</html>